#include <stdio.h>
#include <sys/ioctl.h>

#include <config.h>

#ifdef INPUT_DEVICE_SUPPORT
#include <drivers/input/input.h>

struct input_device *inp_dev;

extern int mtc7000_init(void);
extern void mtc7000_exit(void);


int input_init(void)
{
    int ret = -1;
    ret = mtc7000_init();
    return ret;
}

void input_exit()
{
#ifdef YUN_TOUCH_SCREEN_SUPPORT
    yun_exit();
#endif
}

void InputDeviceLock(void)
{
    if(inp_dev && inp_dev->touch_ops && inp_dev->touch_ops->lock)
        inp_dev->touch_ops->lock();
}

void InputDeviceUnlock(void)
{
    if(inp_dev && inp_dev->touch_ops && inp_dev->touch_ops->unlock)
        inp_dev->touch_ops->unlock();
}

#endif /* INPUT_DEVICE_SUPPORT */
